<?php
/**
 *
 * The site controller handles site level administration
 *
 * @package    	Digitalus\Core
 * @category 	Controllers
 * @copyright  	Copyright (c) 2009,  Digitalus Media USA (http://digitalusmedia.net)
 * @license    	New BSD License, library/Dig/License.txt
 * @version 	2.0
 *
 */
class Dig_SiteController extends Zend_Controller_Action
{
    /**
     * This method sets the template to admin for all actions in this controller.
     */
    public function init()
    {
        DigUi_Service_Template::useAdminTemplate();
    }

    /**
     * This method loads all of the site administration forms
     *
     * You can add your own forms to the site admin interface in any of the
     * module config files. You do this by setting the site.adminForms setting.
     *
     * the config key is used as the tab label and the value is the path to the
     * action which renders the form.
     *
     * @example site.adminForms.caching = "digCms/site/cache"
     */
    public function indexAction()
    {
        $this->view->forms = Dig_Service_Site::getAdminForms();
    }
}
?>
